package com.connection.second;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.core.env.ConfigurableEnvironment;

/**
 * 启动程序
 * 
 * @author ruoyi
 */
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
//启用缓存
@EnableCaching
public class WopaperApplication
{
    public static void main(String[] args)
    {
        // System.setProperty("spring.devtools.restart.enabled", "false");
        ConfigurableEnvironment env = SpringApplication.run(WopaperApplication.class, args).getEnvironment();

        System.out.printf("\n----------------------------------------------------------\n" +
                                "(♥◠‿◠)ﾉﾞ   %s 启动成功   ლ(´ڡ`ლ)ﾞ \n" +
                                "文档地址(推荐):\thttp://localhost:%s/doc.html\n" +
                                "文档地址(备用):\thttp://localhost:%s/swagger-ui/index.html\n"+
                        "----------------------------------------------------------\n",
                        env.getProperty("ruoyi.name"),
                        env.getProperty("server.port"),
                        env.getProperty("server.port"));
    }
}
